#include "MysqlMgr.h"

int MysqlMgr::RegUser(const std::string&name, const std::string& email, const std::string& pwd)
{
    return dao_.RegUser(name,email,pwd);
}

bool MysqlMgr::CheckEmail(const std::string& name, const std::string& email)
{
    return dao_.CheckEmail(name,email);
}

bool MysqlMgr::UpdatePassword(const std::string& name, const std::string& pwd)
{
    return dao_.UpdatePassword(name,pwd);
}

bool MysqlMgr::CheckPwd(const std::string& name, const std::string& pwd,UserInfo& userinfo)
{
    return dao_.CheckPwd(name,pwd,userinfo);
}